package com.hyzx.qbasic.admin.domain.dao;

import com.hyzx.qbasic.admin.model.po.CmsContentPO;
import com.hyzx.qbasic.admin.model.po.CmsPagedContentPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CmsContentMapper {

    int addCmsContent(CmsContentPO record);

    CmsContentPO getCmsContentInfo(@Param("contentId") String contentId);

    List<CmsPagedContentPO> getPagedCmsContentList(@Param("contentStatus") Integer contentStatus,
                                                   @Param("keyword") String keyword,
                                                   @Param("channelId") Integer channelId);

    int editCmsContent(CmsContentPO record);

    int publish(@Param("contentId") String contentId);

    Integer getContentStatus(@Param("contentId") String contentId);

    Integer getContentChannel(@Param("contentId") String contentId);

    int auditComplete(@Param("contentId") String contentId, @Param("contentStatus") int contentStatus);

    int deleteContent(List<String> contentIdList);

    int restoreContent(List<String> contentIdList);

    List<CmsPagedContentPO> getAuditList(@Param("userId") int userId);
}